function output = my_updatelog(log,String)
    % output = my_updatelog(log,String)
    % 
    % ------ 自定义函数 ------
    % 更新info.log中的信息
    % 输入：
    %   log：info.log
    %   String：字符串数组或字符元胞
    
    switch nargin
    case 1
        LogString = strjoin(log,'\n\t\t');
        output.(['time',datestr(now,'ddTHHMMSS')]) = ...
            sprintf("%s\n\t\t%s",datestr(now,31),LogString);
    case 2
        LogString = strjoin(String,'\n\t\t');
        log.(['time',datestr(now,'ddTHHMMSS')]) = ...
            sprintf("%s\n\t\t%s",datestr(now,31),LogString);
        output = log;
    end
end